123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHA00400.xrw
- * 설 명 : 건진환자선택
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.04.13
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>건진환자선택</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <item>
- <pid/>
- <visano/>
- <orddd/>
- <engnm/>
- <hannm/>
- <brthareacnts/>
- <pkgnm/>
- <telno/>
- <mpphon/>
- <remfact/>
- <remcnts/>
- </item>
- </patinfo>
- </main>
- <send>
- <srchcond>pid</srchcond>
- <srchpid/>
- <srchpnm/>
- <srchrgstno1/>
- <srchrgstno2/>
- <srchinstcd/>
- <srchengnm/>
- </send>
- <init/>
- <hidden>
- <patinfo>
- <item/>
- </patinfo>
- </hidden>
- <target>
- <srchcond/>
- <srchpnm/>
- <srchpid/>
- <setflag/>
- <desxpath/>
- <setyn/>
- </target>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
- <submission id="TRAHA00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/patinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- cmb_cond.select(0);
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- model.removeNodeset("/root/main/patinfo/item");
- }
- /**========================================================================================================================
- ** 환자리스트 조회
- *========================================================================================================================*/
-
- function fGetPatList(bInit){
- if( bInit == true ) {
- fInit();
- }
- var vCond = model.getValue("/root/send/srchcond");
- if( vCond == "" ) {
- vCond = "rgstno";
- }
- /**
- * 환자명으로 조회시 두자이상 입력 체크
- */
- var vPnm = model.getValue("/root/send/srchpid") ;
- if( vCond == "rgstno" ){
- vPnm = model.getValue("/root/send/srchrgstno1");
- if( vPnm.length < 1 ) {
- messageBox("주민번호를 입력하세요!", "E999");
- return ;
- }
- }else if( vCond == "engnm" ){
- if( vPnm.length < 2 ) {
- messageBox("영문이름을 두자이상 입력하세요!", "E999");
- return ;
- }
- }else if( vCond == "hannm" ){
- if( vPnm.length < 2 ) {
- messageBox("한글이름을 두자이상 입력하세요!", "E999");
- return ;
- }
- }else{
- if( vPnm.length < 1 ) {
- messageBox("등록번호를 입력하세요!", "E999");
- return ;
- }
- }
- /**
- * 이외에는...null일경우 조회되지 않도록
- */
-
- model.setValue("/root/send/srchcond", vCond);
- model.setValue("/root/send/srchpnm", model.getValue("/root/send/srchpid") );
- model.setValue("/root/send/srchengnm", model.getValue("/root/send/srchpid") );
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
- submit("TRAHA00121");
- var node = instance1.selectSingleNode("/root/hidden/patinfo/item");
- if( node != null ){
- model.copyNode("/root/main/patinfo", "/root/hidden/patinfo");
- }
- model.refresh();
- }
- /**=====================================================================================
- * SMAHA00400_PARAM1 : 현재화면ID
- * SPAHA00400_PARAM2 : 검색조건 pnm/pid/rgstno
- * SPAHA00400_PARAM3 : 검색어
- * SPAHA00400_PARAM4 : nodeset전체 copy여부 (N일경우 원무등록번호와 환자 한글명만 copy)
- * SPAHA00400_PARAM5 : nodeset전체 copy여부 Y 일경우 대상노드
- * SPAHA00400_PARAM6 : nodeset전체 copy여부 N 일경우 원무등록번호 대상노드
- * SPAHA00400_PARAM7 : nodeset전체 copy여부 N 일경우 환자 한글명 대상노드
- * =====================================================================================
- */
- function fSetPatinfo(){
- var idx = grd_patlst.row;
- if( idx < 1) {
- return ;
- }
- if( checkOpener() ) {
- //var vFg = model.getValue("/root/target/setflag");
- var vOpener = opener.javascript.getParameter("SPAHA00400_PARAM1");
- var bSetYN = opener.javascript.getParameter("SPAHA00400_PARAM4");
- var vDestXPath = opener.javascript.getParameter("SPAHA00400_PARAM5");
- var vDestPid = opener.javascript.getParameter("SPAHA00400_PARAM6");
- var vDestPnm = opener.javascript.getParameter("SPAHA00400_PARAM7");
-
- //종합건진 접수화면
- if( bSetYN == "N" ){
- if( vDestPid == "" ) {
- opener.model.setValue(vDestXPath + "/pid" , model.getValue( "/root/main/patinfo/item[" + idx + "]/pid" ) );
- opener.model.setValue(vDestXPath + "/hngnm" , model.getValue( "/root/main/patinfo/item[" + idx + "]/hngnm" ));
- }
- else {
-
- opener.model.setValue(vDestPid , model.getValue( "/root/main/patinfo/item[" + idx + "]/pid" ) );
- opener.model.setValue(vDestPnm , model.getValue( "/root/main/patinfo/item[" + idx + "]/hngnm" ));
- }
- }
- else {
- copyNodesetType(vDestXPath , "/root/main/patinfo/item[" + idx + "]", "replace",opener.model, model );
- }
- /*
- */
- opener.model.setValue("/root/temp/okflag", "ok");
- opener.model.refresh();
- window.close();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="860" pageheight="500" guideline="1,731;2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:850px; height:450px; ">
- <group id="group2" style="left:0px; top:0px; width:850px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:850px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPatList(true);
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_cond" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:101px; top:8px; width:89px; height:19px; ">
- <choices>
- <item>
- <label>주민번호</label>
- <value>rgstno</value>
- </item>
- <item>
- <label>성명(한글)</label>
- <value>hannm</value>
- </item>
- <item>
- <label>성명(영문)</label>
- <value>engnm</value>
- </item>
- <item>
- <label>등록번호</label>
- <value>pid</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var vCond = cmb_cond.value ;
- model.resetInstanceNode("/root/send/srchpid");
- model.resetInstanceNode("/root/send/srchpnm");
- model.resetInstanceNode("/root/send/srchengnm");
- model.resetInstanceNode("/root/send/srchrgstno1");
- model.resetInstanceNode("/root/send/srchrgstno2");
-
- if( (vCond == "pid" ) || (vCond == "pnm" ) || (vCond == "engnm" ) ){
- model.setFocus("ipt_pid");
- }
- else
- if(vCond == "rgstno"){
- model.setFocus("ipt_rgstno1");
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" style="left:194px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_rgstno1" ref="/root/send/srchrgstno1" class="input_search" format="999999" style="left:297px; top:8px; width:60px; height:19px; "/>
- <input id="ipt_rgstno2" ref="/root/send/srchrgstno2" class="input_search" format="9999999" style="left:360px; top:8px; width:60px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">건진자리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:850px; y2:60px; "/>
- <datagrid id="grd_patlst" nodeset="/root/main/patinfo/item" caption="등록번호^비자연번^건진일자^한글명^영문명^비자국가^패키지명^집번호^핸드폰번호^REMARK^특이사항" colsep="^" colwidth="75, 75, 70, 50, 100, 54, 95, 70, 75, 100, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:855px; height:345px; ">
- <col ref="pid" type="input"/>
- <col ref="visano" type="input"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="engnm"/>
- <col ref="hannm"/>
- <col ref="brthareacnts"/>
- <col ref="pkgnm"/>
- <col ref="telno"/>
- <col ref="mpphon"/>
- <col ref="remfact"/>
- <col ref="remcnts"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //fSetPatinfo();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_patlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:405px; width:850px; height:25px; ">
- <button id="btn_confirm" class="btn4_letter2" visibility="hidden" style="left:727px; top:2px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPatinfo();
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:791px; top:2px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|